<script type="text/javascript">
    $(function(){
        $("#pagination").twbsPagination({
            totalPages:${result.pages}||1,
            visiblePages:5,
            startPage:${qo.currentPage!}|| 1,
            first:"首页",
            prev:"上一页",
            next:"下一页",
            last:"尾页",
            onPageClick:function(event,page){
                $("#currentPage").val(page);
                $("#searchForm").submit();
            }
        });

        $("#query").click(function(){
            $("#currentPage").val(1);
            $("#searchForm").submit();
        });

    });
</script>